←Select platform

Compress(byte[],int) Method

Summary
Performs buffer-to-buffer JPEG or LEAD CMP compression.
Syntax
C#
VB
C++
Java
public void Compress( 
   byte[] data, 
   int dataIndex 
) 
Public Overloads Sub Compress( _ 
   ByVal data() As Byte, _ 
   ByVal dataIndex As Integer _ 
)  
public void compress(byte data[], int dataIndex) 
public: 
void Compress(  
   array<byte>^ data, 
   int dataIndex 
)  

Parameters

data
Array of bytes that holds the data to be compressed.

dataIndex
Index into data where the data starts.

Remarks

You must call StartCompress before using this method, and you must call StopCompress to end the compression process. For a description of how these methods work together, refer to StartCompress.

Example

For an example, refer to StartCompress.

Requirements

Target Platforms

Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Codecs Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.